package com.unisal.java;

public abstract class LojaDePizza {
	
	public Pizza orderPizza(String type) {
		Pizza pizza;
		
		pizza = criaPizza(type);
		
		pizza.preparar();
		pizza.assar();
		pizza.cortar();
		pizza.empacotar();
		
		return pizza;
	}

	protected abstract Pizza criaPizza(String tipo);
}
